package com.joycessh.po;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

public class TopicPO {
	
	/**
	 * @author joycessh
	 */
	
	private int id;
	private String title;
	private String content;
	private String author;
	private Timestamp createDate;
	
	//一对多： 一个贴子 可以拥有 【多个回复】  
    private Set<ReplyPO> replySet = new HashSet<ReplyPO>();

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Timestamp getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Set<ReplyPO> getReplySet() {
		return replySet;
	}

	public void setReplySet(Set<ReplyPO> replySet) {
		this.replySet = replySet;
	}  

}
